package com.mengyun;

import org.apache.shiro.codec.Base64;
import org.apache.shiro.crypto.hash.Md5Hash;

public class aaaaaaaa {
    public static void main(String[] args) {
        String string=encryptPassword("admin", "admin", "43363f");
        string= Base64.decode("fCq+/xW488hMTCD+洒洒水多撒多cmJ3aQ==dsadsa").toString();
        System.out.println(string+"---------"+("qOgs5fr7l79lI8tkgrLKbQ====").length());
    }

    public static String encryptPassword(String username, String password, String salt) {
        return new Md5Hash(username + password + salt + "KL").toHex().toString();
    }
}
